package com.cx.mall.order.controller;

import com.cx.mall.common.entity.order.entity.OrderInfo;
import com.cx.mall.common.util.ResponseVo;
import com.cx.mall.order.service.IOrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author zs
 * @since 2025-08-07
 */
@RestController
@RequestMapping("/order/orderInfo")
public class OrderInfoController {
    @Autowired
    private IOrderInfoService orderInfoService;


    @PutMapping("/update")
    public ResponseVo update(@RequestBody OrderInfo orderInfo) {
        orderInfoService.updateById(orderInfo);
        return ResponseVo.success();
    }
}
